package top.zhangjianyong.tools.model;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import top.zhangjianyong.tools.entity.ETF;
import top.zhangjianyong.tools.entity.marirui.JJLSKX;

import java.util.ArrayList;
import java.util.List;

@Data
public class ETFVO extends ETF {

    private List<JJLSKX> kData;

    @JSONField(name = "kData")
    public List<JJLSKX> getKData() {
        return kData;
    }

    public void setKData(List<JJLSKX> kData) {
        this.kData = kData;
    }

    public static void main(String[] args) {
        ETFVO etfvo = new ETFVO();
        etfvo.setKData(new ArrayList<>());
        String jsonString = JSON.toJSONString(etfvo);
        System.out.println(jsonString);
    }
}
